package com.atguigu.pojo;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassNAME Address
 * @Description
 * @Author wuyafeng atguigu
 * @Date 2021/11/10 15:27
 * @Version 1.0
 **/
@Component
@ConfigurationProperties("address")
public class Address {
    private String addressName;
    private String phone;

    public String getAddressName() {
        return addressName;
    }

    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
